package thread;

public class ThreadDemo1 {
    public static void main(String[] args) {
        Thread t1 = new MyThread();//
        Thread t2 = new Mythread1();
        t1.start();//start()方法启动线程,把线程放入就绪队列中，等带线程调度器调度
        t2.start();

    }
}
class MyThread extends Thread{
    public void run(){
        for(int i = 0;i<=100;i++){
            System.out.println("极大飞机");
        }
    }
}

class Mythread1 extends Thread{
    public void run(){
        for(int i = 0;i<=100;i++){
            System.out.println("小飞机");
        }
    }
}